import { defineStore } from "pinia";

const bookDeliveryStore = defineStore("bookDelivery", {
  state: () => ({
    refreshLibFavorite: false,
    refreshStoreFavorite: false,
    orderStatusList: [
      { label: "未支付", value: 1, color: "alert" },
      { label: "已支付", value: 2, color: "normal" },
      { label: "支付异常", value: 3, color: "xred" },
      { label: "订单已失效", value: 4, color: "gray" },
      { label: "已退款", value: 5, color: "gray" },
      { label: "已同意", value: 6, color: "normal" },
      { label: "已拒绝", value: 7, color: "xred" },
      { label: "已发货", value: 8, color: "normal" },
      { label: "无法发货", value: 9, color: "alert" },
      { label: "已取消", value: 10, color: "gray" },
    ],
  }),
});

export { bookDeliveryStore };
